<?php 
	namespace app\admin\controller;
	use \think\Controller;
	use think\facade\Session;
	
	class Base extends Controller{
		public function __construct(){
			parent::__construct();
			$isLogin = Session::get("isLogin");
			$cur = request()->action();
			$this->assign("cur",$cur);
			if(Session::has("islogin")||$isLogin==null||$isLogin!=1)
					$this->redirect("admin/login/login");			
		}
		public function publicView(){
			return $this->fetch();
		}	
		public function logout(){
			Session::set("islogin",'');
			$this->redirect("admin/login/login");
		}	
	}
?>